home *** CD-ROM | disk | FTP | other *** search
/ cyber.net interactivo 1997 March / inter@ivo 1997-03.iso / wing / cube.mk_ / cube.mk
Text File  |  1994-09-20  |  1KB  |  49 lines

  1. DEBUG=NO
  2.  
  3. !if "$(DEBUG)" == "YES"
  4. DEF = -DDEBUG -DSTRICT -DPROFILE
  5. CC  = cl -c -W3 -AS -G2 -GA -Zi -Od $(DEF)
  6. LINK= link /NOE/NOD/MAP/AL:16/CO 
  7. !else
  8. DEF = -DSTRICT
  9. CC  = cl -c -W3 -AS -G3 -GA -Oxwt -FPi $(DEF)
  10. LINK= link /NOE/NOD/MAP/AL:16
  11. !endif
  12.  
  13. NAME= cube
  14. RC  = rc
  15.  
  16. OBJDIR = .
  17. OBJ  = $(OBJDIR)\$(NAME).obj $(OBJDIR)\dumb3d.obj $(OBJDIR)\utils.obj
  18. LIBS = libw slibcew commdlg wing mmsystem 
  19.  
  20. .cpp{$(OBJDIR)}.obj:
  21.   $(CC) -Fo$*.obj $<
  22.  
  23. goal: $(NAME).exe
  24.  
  25. $(NAME).exe: $(OBJ) $(NAME).res $(NAME).def $(NAME).mk
  26.   $(LINK) @<<
  27.     $(OBJ) $(UTL), $(NAME), $(NAME),$(LIBS), $(NAME).def
  28. <<
  29.     
  30.   rc $(NAME).res
  31.   -mapsym $(NAME).map
  32.  
  33. $(NAME).res: $(NAME).rc $(NAME).ico
  34.   $(RC) -r $(NAME).rc
  35.  
  36. clean:
  37.     if exist $(NAME).exe  del $(NAME).exe
  38.     if exist *.res  del *.res
  39.     if exist *.err  del *.err
  40.     if exist $(OBJDIR)\*.obj  del $(OBJDIR)\*.obj
  41.     if exist *.map  del *.map
  42.     if exist *.sym  del *.sym
  43.     if exist *.cod  del *.cod
  44.     if exist *.pdb  del *.pdb
  45.  
  46. $(OBJDIR)\utils.obj: ..\utils\utils.c ..\utils\utils.h
  47.     $(CC) -Fo$*.obj ..\utils\utils.c
  48.     
  49.